package com.oa.service.impl;

import java.util.List;

import com.oa.bean.work.Admin;
import com.oa.dao.AdminDAO;
import com.oa.service.AdminService;

public class AdminServiceImpl implements AdminService {

	private AdminDAO adminDAO;

	public void setAdminDAO(AdminDAO adminDAO) {
		this.adminDAO = adminDAO;
	}

	@Override
	public void save(Admin admin) {
		adminDAO.save(admin);
	}

	@Override
	public void delete(Admin admin) {
		adminDAO.delete(admin);
	}

	@Override
	public Admin update(Admin admin) {
		return adminDAO.update(admin);
	}

	@Override
	public List<Admin> queryAll() {
		return adminDAO.queryAll();
	}

	@Override
	public Admin queryById(Integer id) {
		return adminDAO.queryById(id);
	}

	@Override
	public List<Admin> queryByPager(int page, int pageSize) {
		return adminDAO.queryByPager(page, pageSize);
	}

	@Override
	public Admin login(Admin admin) {
		return adminDAO.login(admin);
	}

}
